package org.sith.taskrunner.ejb.db.dao;

import java.util.List;

import org.sith.taskrunner.api.user.Role;
import org.sith.taskrunner.api.user.User;
import org.sith.taskrunner.ejb.db.entity.UserEntity;

import javax.ejb.Local;

@Local
public interface UserDAO extends DefaultDAO<UserEntity> {

	User getUserByNameAndPassword(String usrName, String usrPass);

	List<UserEntity> getUserByRole(Role role);

    boolean updateUserActiveState(Long id, boolean active);

    boolean updateRole(Long id, Role roleEntity);

}
